namespace Gunz
{
	namespace Chat
	{
		unsigned long ulZChatOutput		= 0x0042A230;
		unsigned long ulZPostWhisper	= 0;
		unsigned long ulZPostPeerChat	= 0x004297F0;
		
		void OutputMessage( char *szMessage );
		void Whisper( char* szSender, char* szReciever, char* szMessage );
		void PeerChat( char* szMessage, int iTeamID );
	}
}

void Gunz::Chat::OutputMessage( char* szMessage )
{
	__asm
	{
		push 0xFFFFFFFF
		push 0
		push 2
		push szMessage
		call ulZChatOutput
		add esp, 16
	}
}

void Gunz::Chat::Whisper( char* szSender, char* szReciever, char* szMessage )
{
	__asm
	{
		push szMessage
		push szReciever
		push szSender
		call ulZPostWhisper
		add esp, 12
	}
}

void Gunz::Chat::PeerChat( char* szMessage, int iTeamID )
{
	__asm
	{
		push iTeamID
		push szMessage
		call ulZPostPeerChat
		add esp, 8
	}
}